<div class="page-content">
	<div class="row">
		<div class="col-md-12">
		<input type="hidden" value="${bankCardEmp.id}" name="id">
		<form class="form-horizontal" action="">
				<div class="form-group">
					<label class="control-label col-md-3 no-padding-right" for="name">选择企业:</label>
					<div class="col-md-9">
						<div class="clearfix">
							<select id="selectcorp" class="form-control" >
								<option value = "">请选择企业</option>
								<#list sldList as sld>
									<option data-url="${sld.domain}" value="${sld.id}">${sld.corp.name}</option>
								</#list>
							</select>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-md-3 no-padding-right" for="name">生成的链接:</label>
					<div class="col-md-9">
						<div class="clearfix">
							<textarea class="form-control" rows="4" cols="" placeholder="生成的链接在此处"  id="activityurl" >
							
							</textarea>
						</div>
					</div>
				</div>
			</form>
			<div class="form-group">
                 <div class="row center">
                  	<button type="button" onClick="mysubmit('create');"  class="btn btn-primary">
						生成
					</button>
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				</div>					
	        </div>
		</div>
	</div>
</div>
<script>
function mysubmit(form){
	//var id = "${id}";
	var url= $('#selectcorp option:selected').data("url");
	var activityUrl = url+"/downSearch/list";
	$("#activityurl").val(activityUrl);
}
</script>